package com.eco.fanliapp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eco.fanliapp.entity.AppUserSearchHistory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppUserSearchHistoryMapper extends BaseMapper<AppUserSearchHistory> {

    AppUserSearchHistory selectByUserId(@Param("userId") Long userId);

    int selectCountSearchCouponPeople(@Param("companyId") Integer companyId);

    int yesterdaySelectCountSearchCouponPeople(@Param("flag") int flag, @Param("companyId") Integer companyId, @Param("startTime")long startTime, @Param("endTime")long endTime);

    int insertSearchHistoryList(@Param("list") List<AppUserSearchHistory> list);

	int selectCountSearchCouponPeopleNew(@Param("flag") Integer flag, @Param("companyId") Integer companyId, @Param("startTime")long startTime, @Param("endTime")long endTime);
}
